package com.example.nio.tranport;

import org.apache.mina.core.session.IoSession;

import java.util.Map;

public interface Endpoint {

    public void init() throws Exception;

    public void start() throws Exception;

    public void stop() throws Exception;

    public Map<Long, IoSession> getSessions();
}
